package com.ruoyi.project.digital.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 用户与宠物关系对象 t_user_pet
 *
 * @author ruoyi
 * @date 2023-10-30
 */
@Data
@TableName("t_user_pet")
public class UserPet extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 宠物昵称 */
    @Excel(name = "宠物昵称")
    private String petName;

    /** 宠物id */
    @Excel(name = "宠物id")
    private Long petId;

    private String userName;



    /** $column.columnComment */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setPetName(String petName)
    {
        this.petName = petName;
    }

    public String getPetName()
    {
        return petName;
    }
    public void setPetId(Long petId)
    {
        this.petId = petId;
    }

    public Long getPetId()
    {
        return petId;
    }
    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("userId", getUserId())
            .append("petName", getPetName())
            .append("petId", getPetId())
            .append("id", getId())
            .toString();
    }
}
